<template>
  <a-button
    class="theme--perfect-button"
    v-if="visible"
    :disabled="disabled"
    v-bind="useProps"
    @click="handleClick"
  >
  {{useProps.title}}
  </a-button>
</template>

<script>
import ToolbarMixins from '../mixins/ToolbarMixins'
export default {
  name: 'VxeToolbarAdd',
  mixins: [ToolbarMixins],
  data() {
    return {
      defaultProps: {
        title: '新增',
        icon: 'plus'
      }
    }
  },
  computed: {
    useProps() {
      return Object.assign({}, this.defaultProps, this.toolbarProps)
    }
  }
}
</script>
<style lang="less">
.theme--perfect-button.ant-btn {
  // padding: 0px 10px;
}
</style>

